@echo off

call "%VS80COMNTOOLS%vsvars32.bat"
echo Current directory is:
cd

rem DEVENV /REBUILD "Release" "..\HiMmiTest\HiMmiTest_CN\HiMmiTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\DriverAdapter\DriverAdapter_CN\DriverAdapter_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\VersionInfo\VersionInfo_CN\VersionInfo_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\TouchpadTest\TouchpadTest_CN\TouchpadTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\LcdTest\LcdTest_CN\LcdTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\LedTest\LedTest_CN\LedTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\VibrationTest\VibrationTest_CN\VibrationTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\KeyboardTest\KeyboardTest_CN\KeyboardTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\PowerTest\PowerTest_CN\PowerTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\BacklightTest\BacklightTest_CN\BacklightTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\CameraTest\CameraTest_CN\CameraTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\SpeakerTest\SpeakerTest_CN\SpeakerTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\ReceiverTest\ReceiverTest_CN\ReceiverTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\EarphoneTest\EarphoneTest_CN\EarphoneTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\MobileMicTest\MobileMicTest_CN\MobileMicTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\EarphoneMicTest\EarphoneMicTest_CN\EarphoneMicTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\FMTest\FMTest_CN\FMTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\SDCardTest\SDCardTest_CN\SDCardTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\BluetoothTest\BluetoothTest_CN\BluetoothTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\GpsTest\GpsTest_CN\GpsTest_CN.vcproj"
rem if errorlevel 1 goto out


rem DEVENV /REBUILD "Release" "..\UIMCardTest\UIMCardTest_CN\UIMCardTest_CN.vcproj"
rem if errorlevel 1 goto out

rem DEVENV /REBUILD "Release" "..\SIMCardTest\UIMCardTest_CN\UIMCardTest_CN.vcproj"
rem if errorlevel 1 goto out


rem  DEVENV /REBUILD "Release" "..\WifiTest\WifiTest_CN\WifiTest_CN.vcproj"
rem  if errorlevel 1 goto out

rem  DEVENV /REBUILD "Release" "..\MTVTest\MTVTest_CN\MTVTest_CN.vcproj"
rem   if errorlevel 1 goto out
  
rem  DEVENV /REBUILD "Release" "..\CurrentTest\CurrentTest_CN\CurrentTest_CN.vcproj"
rem if errorlevel 1 goto out


DEVENV /REBUILD "Release" "..\InnerCameraTest\InnerCameraTest_CN\InnerCameraTest_CN.vcproj"
 if errorlevel 1 goto out





:out
if not errorlevel 1 goto skiperror
echo ****************************************************************************
echo IMPORTANT: If your .NET environment crashed during the build, you should
echo            disable all your addins and try again.  To disable the addins: 
echo              1. Start VC.NET
echo              2. Go to Tools/Add-in Manager
echo              3. Uncheck all the checkboxes in the Startup column
echo ****************************************************************************
pause

:skiperror
echo ****************************************************************************
echo IMPORTANT: Build OK
echo ****************************************************************************
